package com.software.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author wyj
 * @since 2024-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_customer_address")
public class CustomerAddressBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户表 主键
     */
    @TableField("customer_id")
    private Integer customerId;

    /**
     * 省
     */
    @TableField("province")
    private String province;

    /**
     * 市
     */
    @TableField("city")
    private String city;

    /**
     * 区
     */
    @TableField("district")
    private String district;

    /**
     * 详细地址
     */
    @TableField("detail_address")
    private String detailAddress;

    /**
     * 是否默认
     */
    @TableField("is_default")
    private Integer isDefault;

    /**
     * 收货人姓名
     */
    @TableField("customer_nick_name")
    private String customerNickName;

    /**
     * 收货人联系方式
     */
    @TableField("customer_phone")
    private String customerPhone;

    @TableField(exist = false)
    private CustomerInfoBean customerInfoBean;

    @TableField("is_delete")
    private Integer isDelete;

}
